package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2021-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course_category")
public class CourseCategory extends Model<CourseCategory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer sort;

    @TableField("parentId")
    private Long parentId;

    /**
     * 分类类型(1课程，2项目)
     */
    @TableField("categoryType")
    private Integer categoryType;

    @TableField("categoryName")
    private String categoryName;

    /**
     * 层级
     */
    private Integer floor;

    private String cover;

    /**
     * 备注
     */
    private String remark;

    @TableField("statusId")
    private Integer statusId;


    public static final String ID = "id";

    public static final String SORT = "sort";

    public static final String PARENTID = "parentId";

    public static final String CATEGORYTYPE = "categoryType";

    public static final String CATEGORYNAME = "categoryName";

    public static final String FLOOR = "floor";

    public static final String REMARK = "remark";

    public static final String STATUSID = "statusId";

    public static final String COVER = "cover";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
